package main

import (
	"log"
	"net/http"
	"os"
)

func main() {

	err := os.Mkdir("file", 0777)

	if err != nil {
		log.Println("file exits")
	}

	log.Println("Server is running...")
	log.Println("Please don't shut me down...")

	http.Handle("/pollux/", http.StripPrefix("/pollux/", http.FileServer(http.Dir("file"))))
	err = http.ListenAndServe(":8080", nil)
	if err != nil {
		log.Fatal("ListenAndServe: ", err)
	}

}
